StoredLearningSession.Resume Method

Resumes a suspended session. Once the session has been resumed, it is considered active.

Parent Type: StoredLearningSession

Namespace: Microsoft.LearningComponents.Storage

Assembly: Microsoft.LearningComponents.Storage.dll

Syntax
C#

public override void Resume ()

Exceptions
Exception type Condition
InvalidOperationException

Thrown if the session is not in the appropriate state to be resumed. Use IsResumeValid to predict if the operation will succeed.

Remarks

This method does not save changes that result from resuming the session. The application should call CommitChanges after this method and prior to disposing the object to ensure changes are persisted.

The only time that resuming a session is valid is if the session has been previously suspended. That is, if the AttemptStatus is Suspended.